//
//  JXLoginViewController.swift
//  weibo
//
//  Created by admin on 16/5/22.
//  Copyright © 2016年 admin. All rights reserved.
//

import UIKit

class JXLoginViewController: UIViewController {

    
    let webView = UIWebView()
    
    override func viewDidLoad() {
        super.viewDidLoad()

        
        setLeftBtn()
        
        loadWebView()
        
    
    }
    
    
    //加载webView
    private func loadWebView(){
    
        view = webView
        
        
        
        
        
    }
    
    
    

    //设置退出按钮
    
    private func setLeftBtn(){
    
    
        navigationItem.leftBarButtonItem = UIBarButtonItem(imageName: "", title: "返回", target: self, action: #selector(goBack))
    
    }
    
    //返回
    @objc func goBack(){
    
        dismissViewControllerAnimated(true, completion: nil)
    
    
    }
    
    
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }
    

 
}
